<!DOCTYPE html>
<html>
<head>
    <title>查看--中软高科-2015</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="../Js/ckeditor/ckeditor.js"></script>
 

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form action="index.html" method="post" class="definewidth m20">
<table class="table table-bordered table-hover definewidth m10" id="tbody">

</table>
</form>
<script>
    (function ($) {
        $.getUrlParam = function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }
    })(jQuery);

    var uid = $.getUrlParam("id");

    $.ajax({
        url:"/patient/getPatientById",
        data:{
            id:uid
        },
        method:"GET",
        dataType:"json",
        success: function(vo){
            var data = vo.obj;
            var patient = data.patients[0];
            var str="<tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">姓名</td>\n" +
                "        <td>"+patient.patientName+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">证件类型</td>\n" +
                "        <td>身份证</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">证件号</td>\n" +
                "        <td>"+patient.patientIdCard+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">社保号</td>\n" +
                "        <td>"+patient.patientSocietyId+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">联系电话</td>\n" +
                "        <td>"+patient.patientPhoneNum+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">是否自费</td>\n" +
                "        <td>"+patient.expenseWay+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">性别</td>\n" +
                "        <td>"+patient.patientGender+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">年龄</td>\n" +
                "        <td>"+patient.patientAge+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">职业</td>\n" +
                "        <td>"+patient.patientWork+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">初复诊</td>\n" +
                "        <td>"+patient.patientFirst+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">所挂科室</td>\n" +
                "        <td>"+patient.patientDept+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">指定医生</td>\n" +
                "        <td>"+patient.doctor+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">押金余额</td>\n" +
                "        <td>"+data.deposit+"</td>\n" +
                "    </tr>\n" +
                "\n" +
                "    <tr>\n" +
                "        <td width=\"10%\" class=\"tableleft\">备注</td>\n" +
                "        <td>"+patient.patientTip+"</td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td colspan=\"2\">\n" +
                "            <center>\n" +
                "                <button type=\"button\" class=\"btn btn-success\" name=\"backid\" id=\"backid\">返回列表</button>\n" +
                "            </center>\n" +
                "        </td>\n" +
                "    </tr>\n"
            $("#tbody").html(str);
        }
    })

    function backId(){
        window.location.href="index.html";
    }
</script>
</body>
</html>